<?php 

namespace app\common\validate\ywUser;

use think\Validate;

class UserDispatchRoom extends Validate 
{ 
    protected $rule = [
        'customer_id' => 'require',
        'room_id' => 'require',
    ];

    protected $message = [
        'customer_id.require' => '请输入用户ID',
        'room_id.require' => '请输入申请调度的房间ID',
    ];

    protected $scene = [
        'edit' => ['customer_id','admin_name','examine_admin_name','room_id','old_room_id','id'],
        'add' => ['customer_id','admin_name','examine_admin_name','room_id','old_room_id'],
    ];

} 
